import {BaseModel} from "../core/BaseModel";

module.exports = class extends BaseModel {
    constructor() {
        super();
        this._name = this.tableName('admin_app');
    }

    async getAppIds(adminId) {
        const data = await this.mysql(this._name).where({admin_id:adminId});
        if (data) {
            return data.app_ids;
        }
        return null;
    }
}